projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b82993
)
treestore: Initialize some local variables
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Mar 2021 11:51:27 +0000
(07:51 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 17 Mar 2021 11:51:27 +0000
(07:51 -0400)
gcc 11 is warning that these might be used uninitialized
otherwise.
gtk/gtktreestore.c
patch
|
blob
|
history
diff --git
a/gtk/gtktreestore.c
b/gtk/gtktreestore.c
index c02dcd3a1720b25b8286afa647ff1f707d446b70..c542af00ba4e9110fd45718f3b94e7bb7b2bfb3c 100644
(file)
--- a/
gtk/gtktreestore.c
+++ b/
gtk/gtktreestore.c
@@
-2471,7
+2471,9
@@
gtk_tree_store_move (GtkTreeStore *tree_store,
GNode *parent, *node, *a, *b, *tmp, *tmp_a, *tmp_b;
int old_pos, new_pos, length, i, *order;
GtkTreePath *path = NULL, *tmppath, *pos_path = NULL;
- GtkTreeIter parent_iter, dst_a, dst_b;
+ GtkTreeIter parent_iter = { 0, };
+ GtkTreeIter dst_a = { 0, };
+ GtkTreeIter dst_b = { 0, };
int depth = 0;
gboolean handle_b = TRUE;